* {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style-type: none;
}

#canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
}

.actions{
    position: fixed;
    top: 5px;
    left: 5px;
}


.actions svg{
    width: 2em;
    height: 2em;
    margin-left: 5px;
    margin-top: 5px;
    transition: all 0.3s;
}

.actions svg.active{
    color: red;
    transform: scale(1.2)
}
.actions > #brush{
    display: none;
}
  
.actions.x > #brush{
    display: inline-block;
}
.actions.x > #eraser{
    display: none
}

.icon {
    width: 1em; height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
 }

.colors {
     position: fixed;
     top: 48px;
     left: 11px;
 }

.colors li {
    width: 20px;
    height: 20px;
    margin: 10px 0;
    border-radius: 50%;
    border: 1px solid grey;
    transition: all 0.3s;
}

.colors li.red{
    background-color: red;
}

.colors li.yellow{
    background-color: yellow;
}

.colors li.blue{
    background-color: blue;
}

.colors li.green{
    background-color: green;
}

.colors li.black{
    background-color: black;
}

.colors li.active{
    transform: scale(1.2);
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.penSizes{
    position: fixed;
    top: 45px;
    right: 10px;
}

.penSizes li{
    width: 26px;
    height: 0px;
    margin: 10px 0;
    transition: all 0.3s;
}

.penSizes li.w3{
    border-bottom: 3px solid black;
}

.penSizes li.w5{
    border-bottom: 7px solid black;
}

.penSizes li.w8{
    border-bottom: 10px solid black;
}

.penSizes li.active{
    transform: scale(1.2);
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.clear{
    position: fixed;
    top: 10px;
    left: 94px;
    width: 2em;
    height: 2em;
    transition: all 0.3s;
}

.clear:active {
    transform: scale(1.2);
    fill: red;
}

.save{
    position: fixed;
    top: 12px;
    left: 135px;
    width: 2em;
    height: 2em;
    transition: all 0.5s;
}

.save:active {
    transform: scale(1.2);
}